# Contributor: Sergio Iglesias <sergiotarxz@posteo.net>
# Maintainer: Sergio Iglesias <sergiotarxz@posteo.net>
pkgname=openmg
pkgver=0.0.9
pkgrel=0
pkgdesc="Manga reader for GNOME"
url="https://github.com/sergiotarxz/openmg"
arch="all !s390x !riscv64"
license="GPL-3.0-or-later"
makedepends="gtk4.0-dev meson libsoup-dev libadwaita-dev pcre2-dev json-glib-dev"
options="!check" # no tests
source="$pkgname-$pkgver.tar.gz::https://github.com/sergiotarxz/openmg/archive/refs/tags/v$pkgver.tar.gz
	format-security.patch
	"

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
862ee4bfec1aee50060ea8cf375eb650c2f2646f39eb0148bec4661934cdac939b2e1255f0761142730949ff242549113087d2bc0e6142823c88d37fffdc0fe8  openmg-0.0.9.tar.gz
880c8309c7fc6b6000cb3135e7dc1f32d740856d4d14de1e9529e9045605502692db6c5e3e6d052c3b1ecd2e5d944718d7373635b00339a3487404b216b5e668  format-security.patch
"
